package com.example.demo.mapper;

import com.example.demo.model.Comment;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

/**
 * @author redjava
 * @create 2021-07-29 13:37
 */
@Mapper
public interface CommentMapper {
    @Insert("insert into comment(parent_id,type,commentator,content,like_count,gmt_create,gmt_modified) " +
            "values(#{parentId},#{type},#{commentator},#{content},#{likeCount},#{gmtCreate},#{gmtModified})")
    void insert(Comment comment);
}
